package com.wpml.cloud.classroom;

import com.wpml.cloud.classroom.netty.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class CloudClassroomNettyApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(CloudClassroomNettyApplication.class, args);
        NettyServer nettyServer = context.getBean(NettyServer.class);
        nettyServer.startServer();
    }

}
